import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get_storage/get_storage.dart';
import 'package:hive_flutter/adapters.dart';
import 'package:work_tools/page/main/main.dart';
import 'dio/api.dart';
import 'dio/http.dart';

void main() async {
  await GetStorage.init();
  /// 本地化存储的初始化
  await Hive.initFlutter("hive_db");
  Get.put(Http.init());
  Get.put(API());
  await Http.loadToken();
  runApp(MyApp());
}
